cmake_minimum_required(VERSION 3.10)
project(MyProgram)

# Set build directory
set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/build)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR})
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})

# Include headers
include_directories(include)

# Collect sources
file(GLOB SOURCES "sources/*.cpp")

# 🔼 如果 NewEnemyTypes.hh 放在 include 下不变，如果你放 sources 就别 include 目录了。

# Add executable
add_executable(program ${SOURCES})
